package io.github.talelin.latticy.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/28
 * @description:
 */
@AllArgsConstructor
@Getter
public enum OrderStatusEnum {


    /**
     * 草稿
     */
    DRAFT(0,"草稿"),

    /**
     * 已提交
     */
    APPROVED(1,"已提交"),
    /**
     * 已取消
     */
    CANCELLED(2,"作废"),
    /**
     * 待下架
     */
    TO_BE_REMOVED(3,"待下架"),
    /**
     * 拣货完毕
     */
    PICKING_FINISHED(4,"拣货完毕"),
    /**
     * 出库中
     */
    CHECKOUT(5,"出库中"),
    /**
     * 已出库
     */
    ISSUED(6,"已出库"),
    /**
     * 已完成
     */
    FINISHED(7,"已完成"),

    /**
     * 截单
     */
    CUT_ORDER(8,"截单");

    @EnumValue
    private Integer orderStatus;

    @JsonValue    //标记响应json值
    private String orderStatusDesc;
}
